﻿using System;

namespace BaseSyntax.Boxing
{
	// 封箱
	// 装箱是将值类型转换为 object 类型或由此值类型实现的任何接口类型的过程。 
	public class Boxing:ITest
	{
		public struct MyStruct
		{
			public int a;
		}

		public void Test()
		{
			MyStruct st1 = new MyStruct();
			Object o1 = st1;

			MyStruct st2 = (MyStruct) o1;
		}


	}
}